package com.megalith.service;

import com.megalith.dto.CandidateUserDTO;
import com.megalith.vo.Result;
import com.megalith.vo.UserVO;
import org.flowable.idm.api.User;

import java.util.List;

/**
 * @Description TODO
 * @Author lfp
 * @Date 2022/7/16
 * @Version 1.0
 */
public interface ProcessEngineUserService {
    /**
    *@Description 添加用户
    *@Author lfp
    *@Date 2022/7/16
    *@param userDTO
    *@Return 
    */
    Result<User> addUser(CandidateUserDTO userDTO);

    /**
    *@Description 删除用户
    *@Author lfp
    *@Date 2022/7/16
    *@param userId
    *@Return
    */
    Result deleteUser(String userId);

    /**
    *@Description 用户列表查询
    *@Author lfp
    *@Date 2022/7/16
    *@param userDTO
    *@Return
    */
    List<UserVO> listUser(CandidateUserDTO userDTO);
}
